package com.ke.forum.forumapi.controller;


import com.ke.forum.common.annotation.JwtIgnore;
import com.ke.forum.common.common.Result;
import com.ke.forum.forumapi.service.SortService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 珂
 * @since 2022-05-22
 */
@RestController
@RequestMapping("/sort")
public class SortController {

    @Autowired
    SortService sortService;

    @JwtIgnore
    @GetMapping("/listSortAndSection")
    public Result listSortAndSection(){
        return sortService.listSortAndSection();
    }
}

